package org.jeecg.modules.basicProducts.service;

import org.jeecg.modules.basicProducts.entity.BasicPartsDetail;
import org.jeecg.modules.basicProducts.entity.BasicProducts;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @Description: 制品
 * @Author: jeecg-boot
 * @Date:   2025-02-10
 * @Version: V1.0
 */
public interface IBasicProductsService extends IService<BasicProducts> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(BasicProducts basicProducts,List<BasicPartsDetail> basicPartsDetailList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(BasicProducts basicProducts,List<BasicPartsDetail> basicPartsDetailList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	BasicProducts getByProductsSku(String sku);

	BasicProducts getByProductsBack(String back);

	Map<String, BasicProducts> getByProductsSkus(Set<String> productsSkus);
	
}
